﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="RockPaperScissors.Web.Login" %>
<asp:Content ID="main" ContentPlaceHolderID="cntMain" runat="server">
    <div>
        <span id="loginHeader">First Annual <span class="gravityWorks">Gravity Works</span> </span>
        <br />
        <span id="loginContest">Programming Contest</span>
        <br />
        -------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
    </div>
    <div id="login">
        <asp:Login ID="lngMain" runat="server">
            <LayoutTemplate>
            <table cellpadding="1" cellspacing="0" style="border-collapse:collapse;">
                <tr>
                    <td>
                        <table cellpadding="0">
                            <tr>
                                <td align="center" colspan="2">
                                    <span id="loginText">Log In</span></td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                        ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                        ToolTip="User Name is required." ValidationGroup="lngMain">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                        ControlToValidate="Password" ErrorMessage="Password is required." 
                                        ToolTip="Password is required." ValidationGroup="lngMain">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2" style="color:Red;">
                                    <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" colspan="2">
                                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" 
                                        ValidationGroup="lngMain" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </LayoutTemplate>
        </asp:Login>
    </div>

    <div id="loginContent">
        <p>Welcome to the first Annual Gravity Works <span>Programming Contest!</span></p>
        
        <p>
            If you would like to participate, please find a Gravity Works employee 
            and they will get you setup with an account.
        </p>

        <p>
            Whats the contest? Two teams, head to head in an aggressive game of ...
            <br />
            <br />
            <span id="paperScissors">Rock Paper Scissors</span>
        </p>
    </div>
    
</asp:Content>
